package com.song.service.impl;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.song.service.OrderService;
import org.springframework.stereotype.Service;

/**
 * @author TonySong
 * @date 2024/5/10 0010
 * @time 15:03
 */
@Service
public class OrderServiceImpl implements OrderService {
    @Override
    @SentinelResource(fallback = "fallback")
    public String showOrder() {
        return "订单详情";
    }

    public String fallback(Throwable e){
        return "链路限流！";
    }
}
